export const tableComponentConfig = {
  removeButton: () =>
    import('@/views/purchase-order/components/tableComp/removeButton.vue'),
  orderNumberShow: () =>
    import('@/views/purchase-order/components/tableComp/orderNumberShow.vue'),
};

export const tableRenderConfig = {
  secretLevel: {
    title: '密级',
    dataIndex: 'secretLevel',
    componentName: 'secretLevel',
    width: 140,
  },
  planListNo: { title: '计划编号', dataIndex: 'planListNo', width: 150 },
  supplierCode: { title: '供应商编码', dataIndex: 'supplierCode', width: 150 },
  supplierName: { title: '供应商名称', dataIndex: 'supplierName', width: 150 },
  materialCode: { title: '物料编码', dataIndex: 'mdsItemCode', width: 150 },
  materialName: { title: '物料名称', dataIndex: 'mdsItemName', width: 150 },
  brandNo: { title: '牌号', dataIndex: 'brandNo', width: 150 },
  specification: { title: '规格', dataIndex: 'specification', width: 150 },
  technicalCondition: {
    title: '技术条件',
    dataIndex: 'technicalCondition',
    width: 150,
  },
  machineNo: { title: '产品（机型）', dataIndex: 'machineNo', width: 150 },
  batchNo: { title: '批次', dataIndex: 'batchNo', width: 150 },
  manufactureLotNo: {
    title: '架次',
    dataIndex: 'batchFlow',
    width: 150,
  },
  transcodePicNo: { title: '图号', dataIndex: 'transcodePicNo', width: 150 },
  orderName125: { title: '交货状态', dataIndex: 'orderName125', width: 150 },
  orderName126: {
    title: '计划数量（库存）',
    dataIndex: 'orderName126',
    width: 150,
  },
  orderName127: {
    title: '已签订单数（库存）',
    dataIndex: 'orderName127',
    width: 150,
  },
  orderName128: {
    title: '不含税单价（库存）',
    dataIndex: 'orderName128',
    width: 150,
  },
  orderName129: {
    title: '基本计量单位',
    dataIndex: 'orderName129',
    width: 150,
  },
  orderName130: { title: '转换系数', dataIndex: 'orderName130', width: 150 },
  orderName131: {
    title: '计划数量（采购）',
    dataIndex: 'orderName131',
    width: 150,
  },
  orderName132: {
    title: '已签订单数（采购）',
    dataIndex: 'orderName132',
    width: 150,
  },
  orderName133: {
    title: '不含税单价（采购）',
    dataIndex: 'orderName133',
    width: 150,
  },
  orderName134: {
    title: '计量单位（采购）',
    dataIndex: 'orderName134',
    width: 150,
  },
  taxRate: { title: '合同税率（%）', dataIndex: 'taxRate', width: 150 },
  taxPrice: { title: '含税单价', dataIndex: 'taxPrice', width: 150 },
  pmsBalancePrice: {
    title: '结算单价',
    dataIndex: 'pmsBalancePrice',
    width: 150,
  },
  pmsInvtaxPrice: {
    title: '含税结算单价',
    dataIndex: 'pmsInvtaxPrice',
    width: 150,
  },
  orderName139: { title: '币种', dataIndex: 'orderName139', width: 150 },
  planArrivalDate: {
    title: '交货时间',
    dataIndex: 'planArrivalDate',
    width: 150,
  },
  purchaseContractOn: {
    title: '商务合同编号',
    dataIndex: 'contractCode',
    width: 150,
  },
  orderName141: { title: '是否采购', dataIndex: 'orderName141', width: 150 },
  requireSourceType: {
    title: '需求来源',
    dataIndex: 'requireSourceType',
    width: 150,
  },
  note: { title: '备注', dataIndex: 'note', width: 150 },
  substanceSize: { title: '订货尺寸', dataIndex: 'orderingSize', width: 150 },
  orderName145: { title: '材料尺寸', dataIndex: 'orderName145', width: 150 },
  orderName146: { title: '零部件图号', dataIndex: 'orderName146', width: 150 },
  orderName147: { title: '零部件名称', dataIndex: 'orderName147', width: 150 },
  orderName148: {
    title: '零部件版本号',
    dataIndex: 'orderName148',
    width: 150,
  },
  orderName149: { title: '工艺状态号', dataIndex: 'orderName149', width: 150 },
  orderName150: { title: '单机数量', dataIndex: 'orderName150', width: 150 },
  machineContent: {
    title: '加工内容',
    dataIndex: 'machineContent',
    width: 150,
  },
  orderName152: { title: '业务来源', dataIndex: 'orderName152', width: 150 },

  remove: {
    title: '选项',
    dataIndex: 'remove',
    componentName: 'removeButton',
  },
  operate: {
    title: '操作',
    dataIndex: 'operate',
    slotName: 'operate',
    fixed: 'right',
    width: 250,
  },
};
